package com.example.demo.mapper;

import com.example.demo.po.Class;
import com.example.demo.po.News;
import com.example.demo.po.dto.ClassParam;
import com.example.demo.po.dto.NewsParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsMapper {

    void SaveNews(News news);

    void DeleteNews(int id);

    void UpdateNews(News news);

    List<News> GetNews();
    List<News> GetMaterialNews();
    List<News> GetReportNews();

    News GetNewsById(int id);

    List<News> GetMaterialNewsFront();
    List<News> GetReportNewsFront();

    List<News> GetSafeNews();
    List<News> GetNewsByName(String name);

}
